package cn.ruihusoft.ql.pojo;

import lombok.Data;

@Data
public class Response<T> {

    final static int SUCCESS_CODE = 200;

    private int code;

    private String message;

    private T data;

    public boolean isSuccess() {
        return SUCCESS_CODE == code;
    }

}
